package com.ynet.middleground.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: 2019-10-12_userCenter
 * @description: 用户证书信息
 * @author: DaiGaoLe
 * @create: 2019-12-02 17:55
 **/
@Data
@ApiModel(value = "用户证书信息", description = "用户证书信息")
public class CertificateManageDto implements Serializable {
    private static final long serialVersionUID = -7128738353352088838L;
    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编号", notes = "用户编号")
    private Integer userId;

    /**
     * ukey编号
     */
    @ApiModelProperty(value = "uKey编号", notes = "uKey编号")
    private String uKeyId;

    /**
     * 证书DN
     */
    @ApiModelProperty(value = "证书DN", notes = "证书DN")
    private String dn;

    /**
     * 证书序号
     */
    @ApiModelProperty(value = "证书序号", notes = "证书序号")
    private String sequenceNo;

    /**
     * 序列号
     */
    @ApiModelProperty(value = "序列号", notes = "序列号")
    private String serialNo;

    /**
     * 授权码
     */
    @ApiModelProperty(value = "授权码", notes = "授权码")
    private String authCode;

    /**
     * 证书状态 3-未下载,4-激活,5-冻结,6-吊销
     */
    @ApiModelProperty(value = "证书状态", notes = "证书状态")
    private String certStatus;

    /**
     * 有效期起始时间 格式：yyyyMMddHHmmss
     */
    @ApiModelProperty(value = "有效期起始时间", notes = "有效期起始时间")
    private String startTime;

    /**
     * 有效期截止时间 格式：yyyyMMddHHmmss
     */
    @ApiModelProperty(value = "有效期截止时间", notes = "有效期截止时间")
    private String endTime;

    /**
     * 签名证书
     */
    @ApiModelProperty(value = "签名证书", notes = "签名证书")
    private String signatureCert;

    /**
     * 渠道
     */
    @ApiModelProperty(value = "创渠道", notes = "渠道")
    private String channel;
    
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", notes = "创建时间")
    private LocalDateTime gmtCreate;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", notes = "创建人")
    private Integer createBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", notes = "修改时间")
    private LocalDateTime gmtModified;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", notes = "修改人")
    private Integer modifiedBy;
}
